CC=g++
CFLAG=-Wall -Wextra -pedantic -ansi -Wmissing-declarations -std=c++11
SRC=$(wildcard *.cpp)
OBJ=$(SRC:.cpp=.o)

EXEC=laby

all:$(OBJ)
	mkdir -p ../bin;
	cd ../obj && $(CC) $(CFLAG) -o ../bin/$(EXEC) $^

%.o:%.cpp
	mkdir -p ../obj;
	$(CC) $(CFLAG) -c -o ../obj/$@ $<

norme:
	astyle -A1 *pp

clean:
	rm -rf *~ \#*#
	rm -rf *.orig
